home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / tour.dxr / 00041.ls < prev    next >
Encoding:
Text File  |  2000-01-21  |  762 b   |  36 lines

  1. on enterFrame
  2.   global firstTime, goOn, notClicked, gPlaySound, gTiming, audioPath
  3.   set the puppet of sprite 20 to 1
  4.   set the constraint of sprite 20 to 15
  5.   if not soundBusy(1) and not gPlaySound then
  6.     if gTiming then
  7.       startTimer()
  8.       gTiming = 0
  9.     end if
  10.     if (the timer > (8 * 60)) and notClicked then
  11.       goQuick = 1
  12.       goOn = 1
  13.     end if
  14.   end if
  15.   if gPlaySound then
  16.     frameNum = the frame
  17.     soundFile = getAudioFile(frameNum)
  18.     sound playFile 1, audioPath & soundFile & ".AIF"
  19.     gPlaySound = 0
  20.     gTiming = 1
  21.   end if
  22. end
  23.  
  24. on exitFrame
  25.   global firstTime, goOn, gPlaySound, gTiming
  26.   if goOn then
  27.     goOn = 0
  28.     firstTime = 1
  29.     gPlaySound = 1
  30.     gTiming = 0
  31.     go(the frame + 1)
  32.   else
  33.     go(the frame)
  34.   end if
  35. end
  36.